<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			function show1(event){
				document.getElementById("t1").innerHTML=event.x+","+event.y+","+(event.shiftKey);
				document.getElementById("t1").innerHTML+="<br/>"+event.srcElement;
			}
			function add(){
				//alert(arguments.length);
				let s=0;
				for (var i = 0; i < arguments.length; i++) {
					s+=arguments[i];
				}
				return s;
			}
			alert(add(1,3,5,10));
			alert(add("aaa","bbb","cccc"));
		</script>
	</head>
	<body>
		<span id="t1"></span>
		<div onclick="show1(event)" style="border: 2px solid red;height: 500px;width: 600px;">
			sssssssssss
		</div>
		<input type="txt" onclick="show1(event)"/>
	</body>
</html>